package com.atguigu.spzx.manager;

import com.atguigu.spzx.common.config.Knife4jConfig;
import com.atguigu.spzx.common.exception.GuiguExceptionHandler;
import com.atguigu.spzx.common.log.annotations.EnableAspectLog;
import com.atguigu.spzx.common.log.aspects.LogAspect;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableTransactionManagement//启用声明式事务管理
@SpringBootApplication
@Import(Knife4jConfig.class)
@EnableAspectLog //启用切面日志管理
//@Import(LogAspect.class)  将LogAspect类加载到容器中
//@ComponentScan(basePackages = {"com.atguigu.spzx.manager","com.atguigu.spzx.common.log.aspects"})
@EnableScheduling //启用定时任务
//包扫描
//@ComponentScan(basePackages = "com.atguigu.spzx")
//引入指定类的对象到容器中
//@Import(GuiguExceptionHandler.class)
//自动配置： springboot项目启动时会加载依赖的bao的META-INF下可以装配的对象到容器中
public class ManagerApplication {
    public static void main(String[] args) {
        SpringApplication.run(ManagerApplication.class,args);
    }
}
